@layout("/common/_form.html",{js:["/assets/user-dynamic/user_dynamic_details.js"],css:["/assets/common/module/formSelects/formSelects-v4.css"]}){

<style>
.layui-form-item {
    margin-bottom: 0px;
    margin-top: 1px;
}
.layui-form-item .layui-input-inline {
    float: left;
    width: 250px;
    margin-right: 10px;
}
.layui-form-label {
    float: left;
    display: block;
    width: 130px;
    font-weight: 400;
    line-height: 20px;
    text-align: right;
    padding: 9px 15px;
}
.layui-input, .layui-textarea {
    display: block;
    width: 100%;
    padding-left: 10px;
    border-style: none;
}
.layui-card-header {
    position: relative;
    height: 42px;
    line-height: 42px;
    color: rgb(51, 51, 51);
    font-size: large;
    padding: 0px 15px;
    border-bottom: 1px solid rgb(246, 246, 246);
    border-radius: 2px 2px 0px 0px;
}
</style>
<form class="layui-form" id="userForm" lay-filter="userForm">
	<input type="hidden" id="id" name="id" value="${dynamic.id}">
	<input type="hidden" id="pushId" name="pushId" value="${dynamic.pushId}">
	<div class="layui-fluid" style="padding-bottom: 75px;">
		<div class="layui-card">
			<div class="layui-card-header">动态内容</div>
			<div class="layui-card-body">
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">动态标题：</label>
						<div class="layui-input-inline">
							<input type="text" name="email" lay-verify="email"
								autocomplete="off" class="layui-input" value="${dynamic.dynamicContent}" disabled>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					@if(dynamic.lx == 0){
					<div class="layui-inline">
						<label class="layui-form-label">动态内容：</label>
						<div class="layui-input-inline">	
								<img style="width: 80px;" src="${ctxPath}/assets/common/images/u205443.png" disabled>
						</div>
					</div>
					@}
					@if(dynamic.lx != 0){
					<div class="layui-inline">
						<label class="layui-form-label">动态内容：</label>
						<div class="layui-input-inline">
						    @for(offls in dynamic.imglist){
						    	@if(dynamic.lx == 1){
								<img style="width: 80px;" src="${offls}" disabled>
								@}
								@if(dynamic.lx == 2){
								<video width="220px" height="180px"  controls="controls" autobuffer="autobuffer"  loop="loop" src="${offls}" style="width:200px;height:120px;"></video>
								@}
								@if(dynamic.lx == 3){
								<video width="220px" height="180px"  controls="controls" autobuffer="autobuffer"  loop="loop" src="${offls}" style="width:200px;height:120px;"></video>
								@}
							@}
						</div>
					</div>
					@}
				</div>
			</div>
			@if(dynamic.isAudit==1 || dynamic.isAudit==2){ 
			<div class="layui-card-header">审核记录</div>
            <div class="layui-card-body">
                <div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">操作人：</label>
						<div class="layui-input-inline">
							   <input name="date" id="date" value="${dynamic.operationName}"
                                       type="text" class="layui-input" disabled/>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">审核结果：</label>
						<div class="layui-input-inline">
							   <input name="date" id="date" value="${dynamic.isAuditName}"
                                       type="text" class="layui-input" disabled/>
						</div>
					</div>
				</div>
                <div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">审核时间：</label>
						<div class="layui-input-inline">
							   <input name="date" id="date" value="${dynamic.operationTime,'yyyy-MM-dd HH:mm:ss'}"
                                       type="text" class="layui-input" disabled/>
						</div>
					</div>
				</div>
            </div>
            @}
			@if(dynamic.indexShow==1 || dynamic.indexShow==2){ 
			<div class="layui-card-header">精选记录</div>
            <div class="layui-card-body">
                <div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">设置人：</label>
						<div class="layui-input-inline">
							   <input name="date" id="date" value="${dynamic.installName}"
                                       type="text" class="layui-input" disabled/>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">设置结果：</label>
						<div class="layui-input-inline">
							   <input name="date" id="date" value="${dynamic.indexShowName}"
                                       type="text" class="layui-input" disabled/>
						</div>
					</div>
				</div>
                <div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">设置时间：</label>
						<div class="layui-input-inline">
							   <input name="date" id="date" value="${dynamic.installTime,'yyyy-MM-dd HH:mm:ss'}"
                                       type="text" class="layui-input" disabled/>
						</div>
					</div>
				</div>
            </div>
            @}
		</div>
	</div>

	<div class="form-group-bottom text-center">
		@if(shiro.hasPermission("/modular/user_dynamic/audit")){
	    @if(dynamic.isAudit==0){
		<button type="button" class="layui-btn" style="width: 100px;background-color: #009688;" lay-filter="btnOpena" id="btnOpena" name="1">审核通过</button>
		@}
	    @if(dynamic.isAudit==1){
		<button type="button" class="layui-btn" style="width: 100px;background-color: #009688;" lay-filter="btnOpena" id="btnOpena" name="2">审核拒绝</button>
		@}
	    @if(dynamic.isAudit==2){
		<button type="button" class="layui-btn" style="width: 100px;background-color: #009688;" lay-filter="btnOpena" id="btnOpena" name="1">审核通过</button>
		@}
		@}
		@if(shiro.hasPermission("/modular/user_dynamic/install")){
	    @if(dynamic.indexShow==0){
		<button type="button" class="layui-btn" style="width: 100px;background-color: #ff5722;" lay-filter="btnOpenb" id="btnOpenb" name="1">设置精选</button>
		@}
	    @if(dynamic.indexShow==1){
		<button type="button" class="layui-btn" style="width: 100px;background-color: #ff5722;" lay-filter="btnOpenb" id="btnOpenb" name="2">取消精选</button>
		@}
	    @if(dynamic.indexShow==2){
		<button type="button" class="layui-btn" style="width: 100px;background-color: #ff5722;" lay-filter="btnOpenb" id="btnOpenb" name="1">设置精选</button>
		@}
		@}
		@if(shiro.hasPermission("/modular/user_dynamic/delete")){
		<button type="button" class="layui-btn" style="width: 100px;background-color: #ff224b;" lay-filter="btnRm" id="btnRm">删除</button>
		@}
		<button type="reset" class="layui-btn layui-btn-primary"
			ew-event="closeDialog">&emsp;返回&emsp;</button>
	</div>

</form>

@}
